{% load static from staticfiles %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static '/web/static/css/common.css' %}">
    <link rel="stylesheet" href="{% static '/web/node_modules/bootstrap/dist/css/bootstrap.css' %}">
</head>
<body>
    <div class="container">
        <h1 class="form-heading">login Form</h1>
        <div class="login-form">
            <div class="main-div">
                <div class="panel">
                    <h2>登录</h2>
                    <h2>{{ info }}</h2>
                </div>
                <form id="mainForm" name="mainForm" action="{% url 'index_dologin' %}" method="post" class="main-form" enctype="multipart/form-data">
                    {% csrf_token %}
                    <div class="form-group">
                        <select name="shop_id" class="form-control">
                            <option value="0"> - - 请选择商铺名称 - - </option>
                            {% for shop in shopl %}
                            <option value="{{ shop.id }}">{{ shop.name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                    <div class="form-group">
                        <input type="text" name="username" class="form-control"  placeholder="登录账号">
                    </div>
                    <div class="form-group">
                        <input type="password" name="password" class="form-control" placeholder="登录密码">
                    </div>
                    <div class="form-group">
                        <input type="text" name="code" style="display:inline;width:120px;float:left;" class="form-control" placeholder="验证码">
                        <img src="{% url 'myadmin_verify' %}?id=1" onclick="this.src='{% url 'myadmin_verify' %}?sn='+Math.random()"/>
                    </div>

                    <button type="submit" style="margin-top:10px" class="btn btn-primary">登录</button>
                </form>
            </div>
            <p class="botto-text"> Designed by Jack张</p>
        </div>
    </div>
    
    <script src="{% static '/web/static/js/jquery.min.js' %}"></script>
    <script src="{% static '/web/node_modules/bootstrap/dist/js/bootstrap.min.js' %}"></script>
</body>
</html>